<template>
	<div class='container'>
		<h3>inheritAttrs：（用于控制是否启用默认的组件 attribute 透传行为。不影响attrs的值）</h3>
		<br/>
		<hr/>
		<br/>
		<Child name="名称" title="标题" @click="onClick"></Child>
		<Child1 name="名称" title="标题" @click="onClick"></Child1>
	</div>
</template>

<script setup>
import Child from './Child.vue';
import Child1 from './Child1.vue';

const onClick = () => {
	console.log('on-click');
}
</script>
<style lang='less' scoped>
.container {}
</style>
